package cn.jcby.app.lebu.service;

import cn.jcby.app.lebu.controller.req.BasicListReq;
import cn.jcby.app.lebu.controller.res.DictRes;
import cn.jcby.app.lebu.entity.DictEntity;
import cn.jcby.app.lebu.utils.PageUtils;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 字典表
 *
 * @author lht
 * @email 
 * @date 2023-12-07 15:13:35
 */
public interface DictService extends IService<DictEntity> {

    PageUtils queryPage(BasicListReq params);

    void add(DictEntity dict) ;

    void updateBy(DictEntity dict) ;

    List<DictRes> listByParentCode(String parentCode);

    List<DictEntity> cacheListByParentCode(String parentCode) ;

    String getTagNameByCode(String parentCode, String occupation1);

    DictEntity getDictByCode(String parentCode, String code);
}

